'use strict';

class BusinessError extends Error {
  constructor(message, code = 1000) {
    super(message);
    this.name = 'BusinessError';
    this.code = code;
  }
}

module.exports = BusinessError;